﻿using System;
using System.Collections.Generic;

public partial class Topo_ImpMonitorIndex_XDZYL : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AjaxPro.Utility.RegisterTypeForAjax(typeof(Topo_ImpMonitorIndex_XDZYL));
    }
    /// <summary>
    /// 获取基站信道占用
    /// </summary>
    /// <param name="top">排行</param>
    /// <returns></returns>
    [AjaxPro.AjaxMethod]
    public List<Model.Topo.InformationUtilization> GetModelList(string top,string neidList)
    {
       // GetTBSID();
        string[,] str = new string[4, 2] { { "p_neid", "string" }, { "p_strwhere", "string" }, { "p_sort", "string" }, { "p_topcount", "int" } };
        string[] v = new string[] { "", neidList.Length == 0 ? GetTBSID() : neidList, " equip_id,timestamp,rxlev", top };
        BLL.Topo.InformationUtilization n = new BLL.Topo.InformationUtilization();
        List<Model.Topo.InformationUtilization> modelList = n.GetModelList("get_all_tbs_rate", str, v, "LEAF");
        return modelList;
    }
    /// <summary>
    /// 获取重点监视基站列表
    /// </summary>
    /// <returns></returns>
    private string GetTBSID()
    {
        string useISN = GetCookies.UserIsn;// GetCookies.selectedTBSXDZYL;
        return new BLL.Topo.InformationUtilization().GetTBSID(useISN);
    }
}
